<@c.html>
<div class="panel panel-_default">
    <div class="panel-heading">
        <h1 class="panel-title" style="font-size: 28px;">
            <i class="glyphicon glyphicon-chevron-left" style="border: 2px solid #1D2939;border-radius: 50px;font-size: 28px;"></i>
            ckeditor
        </h1>
    </div>
    <div class="panel-body">
        <div class="row">
            <form class="form-horizontal" id="form-table">
                <input name="id" type="hidden" value="${id!""}"/>
                <div class="form-group">
                    <label class="control-label col-sm-3">name</label>
                    <div class="col-sm-12">
                        <textarea id="content"></textarea>
                    </div>
                </div>
            </form>
        </div>
        <div class="row text-center">
            <button class="btn btn-primary" id="btn-save">save</button>
        </div>
    </div>
</div>
</@c.html>
<script type="text/javascript">
    $(function(){
        CKEDITOR.replace( 'content');

        $('#btn-save').click(function(){
            $.post("/test3",{
                content: CKEDITOR.instances.content.getData()
            }, function(){
                bootbox.alert("success!");
            });
        });
    });
</script>
